# <pep8 compliant>

bl_info = {
    "name": "Avion Model Exporter",
    "author": "Mark W. Gabby",
    "version": (0, 0, 2),
    "blender": (2, 5, 7),
    "api": 36103,
    "location": "File > Export > Avion Model (.avionMdl)",
    "description": "Export Avion Models (.avionMdl)",
    "warning": "",
    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Import-Export/AvionMdlExport",
    "tracker_url": "http://projects.blender.org/tracker/index.php?func=detail&aid=24017",
    "category": "Import-Export"}

# To support reload properly, try to access a package var, if it's there, reload everything
if "bpy" in locals():
    import imp
    imp.reload(export_avionMdl)
else:
    from . import export_avionMdl

import bpy

# Only needed if you want to add into a dynamic menu
def menu_export(self, context):
    self.layout.operator(export_avionMdl.ExportAvionMdl.bl_idname, text='Avion Model (.avionMdl)')

def register():
    bpy.utils.register_module(__name__)
    bpy.types.INFO_MT_file_export.append(menu_export)

def unregister():
    bpy.utils.unregister_module(__name__)
    bpy.types.INFO_MT_file_export.remove(menu_export)

if __name__ == "__main__":
    register()
